Document internal CodeGenerator interface Move license to a separate license file. Define a public API for calling libacc. Update the "acc" test program to use the public API. Move "main.cpp" and test scripts into the tests subdirectory. Move test data from tests to tests/data Remove stale test data.
15 lines
369 B
Bash
Executable file
15 lines
369 B
Bash
Executable file
#!/bin/sh
|
|
rm -f test-acc
|
|
cd ..
|
|
g++ -I../include acc.cpp disassem.cpp tests/main.cpp -g -ldl -o tests/test-acc
|
|
cd tests
|
|
if [ -x "test-acc" ]; then
|
|
./test-acc -S data/returnval.c
|
|
|
|
if [ "$(uname)" = "Linux" ]; then
|
|
if [ "$(uname -m)" = "i686" ]; then
|
|
echo "Linux i686. Testing otcc.c"
|
|
./test-acc data/otcc.c data/otcc.c data/returnval.c
|
|
fi
|
|
fi
|
|
fi
|