-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.run.sh
39 lines (32 loc) · 912 Bytes
/
.gitpod.run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#/usr/bin/sh
printf "\nBuilding PyC\n"
if ! make ; then
exit 1
fi
printf "\nCopying Files\n"
if ! cp ./bin/Debug/libPyC.so ./tests/PyC.so ; then
exit 1
fi
printf "\nBuilding Testing library\n"
if ! g++ -g -Wall -shared -fPIC -I./tests/c/ -o tests/libcppmodule.so tests/c/module.cpp ; then
exit 1
fi
if ! gcc -g -Wall -shared -fPIC -I./tests/c/ -o tests/libcmodule.so tests/c/module.c ; then
exit 1
fi
printf "\nRunning the tests\n"
if ! python3.11d -X dev -X showrefcount tests/test.py -v ; then
exit 1
fi
printf "\nBuilding PyC to Check Memory Leaks\n"
if ! make config=memorytest ; then
exit 1
fi
printf "\nCopying Files\n"
if ! cp ./bin/MemoryTest/libPyC.so ./tests/PyC.so ; then
exit 1
fi
printf "\nRunning tests to Check Memory Leaks\n"
if ! LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/10/libasan.so python3.11d -X dev -X showrefcount tests/test.py -v ; then
exit 1
fi