Idris2/tests/base/system_info_os001/Os.idr
2021-06-29 08:34:53 +01:00

15 lines
323 B
Idris

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