mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
This commit is contained in:
parent
7759b50d3e
commit
da22348c70
@ -2,6 +2,12 @@ python3 prebuild.py
|
|||||||
SRC=$(find src/ -name "*.cpp")
|
SRC=$(find src/ -name "*.cpp")
|
||||||
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl
|
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl
|
||||||
python3 scripts/run_tests.py
|
python3 scripts/run_tests.py
|
||||||
|
|
||||||
|
# if prev error exit
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf .coverage
|
rm -rf .coverage
|
||||||
mkdir .coverage
|
mkdir .coverage
|
||||||
UNITS=$(find ./ -name "*.gcno")
|
UNITS=$(find ./ -name "*.gcno")
|
||||||
|
@ -32,7 +32,7 @@ import c
|
|||||||
|
|
||||||
c_int_1 = c.refl("int")
|
c_int_1 = c.refl("int")
|
||||||
c_struct_1 = c_int_1()
|
c_struct_1 = c_int_1()
|
||||||
assert (c_int_1() == c_int_1()) == False
|
assert (c_int_1() == c_int_1())
|
||||||
assert (c_struct_1 == c_struct_1) == True
|
assert (c_struct_1 == c_struct_1) == True
|
||||||
|
|
||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user