test: write modules at build time

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-03-29 10:55:41 +02:00
parent 40d6ec96ea
commit 218a1daf26
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#[perlmod::package(name = "RSPM::Bless", lib = "perlmod_test")] #[perlmod::package(name = "RSPM::Bless", lib = "perlmod_test", write = true)]
mod export { mod export {
use anyhow::Error; use anyhow::Error;

View File

@ -1,4 +1,4 @@
#[perlmod::package(name = "RSPM::Magic", lib = "perlmod_test")] #[perlmod::package(name = "RSPM::Magic", lib = "perlmod_test", write = true)]
mod export { mod export {
use perlmod::{Error, Value}; use perlmod::{Error, Value};

View File

@ -1,4 +1,4 @@
#[perlmod::package(name = "RSPM::Option", lib = "perlmod_test")] #[perlmod::package(name = "RSPM::Option", lib = "perlmod_test", write = true)]
mod export { mod export {
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -21,7 +21,7 @@ enum AnEnum {
ResultB, ResultB,
} }
#[perlmod::package(name = "RSPM::Foo142", lib = "perlmod_test")] #[perlmod::package(name = "RSPM::Foo142", lib = "perlmod_test", write = true)]
mod export { mod export {
use anyhow::{bail, Error}; use anyhow::{bail, Error};