make pddbtest not part of the hw build but part of hosted mode by default

This commit is contained in:
bunnie 2022-03-29 16:49:18 +08:00
parent e4eed87a55
commit d736d54cee
3 changed files with 4 additions and 2 deletions

View file

@ -84,7 +84,7 @@ spinortest = [] # for spinor testing. contra-indicated with PDDB, as it steals m
benchmarks = [] # adds the benchmark routines. Left off normally to free up code and memory space.
tts = [] # adds text to speech plugin
pddbtest = []
default = ["pddbtest"] # "debugprint"
default = [] # "debugprint"
[target.'cfg(any(windows,unix))'.dependencies]
debug-here = "*"

View file

@ -1,5 +1,6 @@
use crate::{ShellCmdApi, CommonEnv};
use xous_ipc::String;
#[allow(unused_imports)]
use std::io::{Write, Read, Seek, SeekFrom};
pub struct PddbCmd {

View file

@ -384,7 +384,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
pkgs.push(app);
}
generate_app_menus(&apps);
run(false, &pkgs, None, false)?
// for hosted runs, compile in the pddb test routines by default...for now.
run(false, &pkgs, Some(&["--features", "pddbtest"]), false)?
}
Some("hosted-ci") => {
let mut pkgs = hw_pkgs.to_vec();