trick/trick_source/trick_gsetup/tests/check_env.py
cherpin00 b2c12b34fe
Gsetup (#1172)
* Added Gsetup.
Added Python tests for github actions.

* Add python requirments for pytests

#1238 

Co-authored-by: Scott Fennell <spfennell@gmail.com>
2022-03-10 12:50:03 -06:00

16 lines
424 B
Python
Executable File

#! /home/cherpin/gsetup2/venv/bin/python3.8
#used for test cases
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--hello", help=f"print hello world.", action="store_true")
args = parser.parse_args()
if args.hello:
print("Hello World!")
else:
import os
print(os.environ.get("CC"))
print(os.environ.get("CFLAGS"))
print(os.environ.get("CPP"))
print(os.environ.get("CPPFLAGS"))