ssp/test/test_single_header.sh

17 lines
339 B
Bash
Raw Permalink Normal View History

2022-03-30 18:35:10 +02:00
#!/bin/bash
2022-03-30 19:56:57 +02:00
set -x
2022-03-30 18:35:10 +02:00
set -e
TMP_HDR=test_single_header.hpp
TMP_SRC=test_single_header.cpp
TMP_BIN=test_single_header
2022-03-30 18:35:10 +02:00
python3 script/single_header_generator.py > ${TMP_HDR}
cat ${TMP_HDR} test/test_single_header_main.txt > ${TMP_SRC}
2022-03-30 18:35:10 +02:00
g++ -std=c++17 ${TMP_SRC} -o ${TMP_BIN} -Wall -Wextra
./${TMP_BIN}
2022-03-30 18:35:10 +02:00
rm ${TMP_HDR} ${TMP_SRC} ${TMP_BIN}