#!/usr/bin/env python3 # SPDX-License-Identifier: MIT import copy import hashlib import json from pathlib import Path import runpy import struct import tempfile import unittest M=runpy.run_path(str(Path(__file__).with_name('process-arguments.py'))) class ProcessArguments(unittest.TestCase): def setUp(self): self.mem={};self.slide=0x4000;self.argc=0x60000000 self.argvptr=0x60000008;self.vector=0x60010000;self.string=0x60023ff4 self.put(M['ACCESSOR']+self.slide,M['ACCESSOR_BYTES']) self.q(M['ARGC_SLOT']+self.slide,self.argc) self.q(M['ARGV_SLOT']+self.slide,self.argvptr) self.put(self.argc,struct.pack('