mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
add test_single_header.sh
This commit is contained in:
parent
62055f03c7
commit
d328f7d59d
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,3 +6,5 @@ build/
|
||||
hbuild/
|
||||
subprojects/*
|
||||
!subprojects/*.wrap
|
||||
ssp.cpp
|
||||
ssp.bin
|
||||
|
15
script/test_single_header.sh
Executable file
15
script/test_single_header.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
python3 script/single_header_generator.py > ssp.cpp
|
||||
|
||||
echo "" >> ssh.cpp
|
||||
echo 'int main(){ ss::parser p{""}; p.get_next<int, float>(); return 0; }' \
|
||||
>> ssp.cpp
|
||||
|
||||
g++ -std=c++17 ssp.cpp -o ssp.bin -Wall -Wextra
|
||||
./ssp.bin
|
||||
|
||||
rm ssp.cpp ssp.bin
|
14
test/test_single_header.sh
Executable file
14
test/test_single_header.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
python3 script/single_header_generator.py > ssp.cpp
|
||||
|
||||
echo 'int main(){ ss::parser p{""}; p.get_next<int, float>(); return 0; }' \
|
||||
>> ssp.cpp
|
||||
|
||||
g++ -std=c++17 ssp.cpp -o ssp.bin -Wall -Wextra
|
||||
./ssp.bin
|
||||
|
||||
rm ssp.cpp ssp.bin
|
Loading…
Reference in New Issue
Block a user