mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixosTests.agda: Adapt to --guardedness requirements
The one-line test is hard to fix in a readable manner and doesn't really add value above the hello-world test. So rather simplify to reduce maintenance.
This commit is contained in:
parent
27ff64e919
commit
65fcd698bb
@ -2,6 +2,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
|||||||
|
|
||||||
let
|
let
|
||||||
hello-world = pkgs.writeText "hello-world" ''
|
hello-world = pkgs.writeText "hello-world" ''
|
||||||
|
{-# OPTIONS --guardedness #-}
|
||||||
open import IO
|
open import IO
|
||||||
open import Level
|
open import Level
|
||||||
|
|
||||||
@ -35,10 +36,6 @@ in
|
|||||||
machine.succeed("touch TestEmpty.agda")
|
machine.succeed("touch TestEmpty.agda")
|
||||||
machine.succeed("agda TestEmpty.agda")
|
machine.succeed("agda TestEmpty.agda")
|
||||||
|
|
||||||
# Minimal script that actually uses the standard library
|
|
||||||
machine.succeed('echo "import IO" > TestIO.agda')
|
|
||||||
machine.succeed("agda -l standard-library -i . TestIO.agda")
|
|
||||||
|
|
||||||
# Hello world
|
# Hello world
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"cp ${hello-world} HelloWorld.agda"
|
"cp ${hello-world} HelloWorld.agda"
|
||||||
|
Loading…
Reference in New Issue
Block a user