Idris2/tests/base/system_info_os001/Os.idr

15 lines
323 B
Idris
Raw Normal View History

2021-06-29 02:18:14 +03:00
import System
import System.Info
main : IO ()
main = do
Just expectedOs <- getEnv "EXPECTED_OS"
| Nothing => do
putStrLn "EXPECTED_OS unset"
exitFailure
case os == expectedOs of
True => putStrLn "correct"
False => do
putStrLn ("os=" ++ os ++ " expected=" ++ expectedOs)
exitFailure