Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サンプルコードを使ったテストを回す #180

Open
comavius opened this issue Dec 20, 2024 · 1 comment
Open

サンプルコードを使ったテストを回す #180

comavius opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@comavius
Copy link
Member

No description provided.

@mtaku3
Copy link
Contributor

mtaku3 commented Jan 10, 2025

flake の outputs に次を含めればいい感じにサンプルコードのビルドテストがHydraでできる "はず" です。
サンプルコードの仕様はまだ決まってないと思うので, SRC=${drv.something} の部分は仕様を決めてよしなにする必要あります。

hydraJobs = builtins.listToAttrs (builtins.map
  (drv: {
    name = drv.binName;
    value = {
      buildInputs = [drv];
      checkPhase = ''
        ${drv.traojudge.compile}
        SRC=${drv.traojudge.something} DEST=$(mktemp -d)/output.txt ${drv.traojudge.run}
      '';
    };
  })
  (interpreters.all
    ++ compilers.all));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants