#!/bin/bash

###该脚本基于test目录,即：pwd=path/to/ds/test
#accelerator
cd accelerator/
pytest ./

cd ..
#unit模块
pytest ./unit/profiling/flops_profiler/test_flops_profiler.py
pytest unit/test_ds_config.py
pytest unit/test_cpu_adam.py
pytest unit/pipe/test_pipe_module.py
pytest unit/autotuning/test_autotuning.py
export ROCBLAS_COMPUTETYPE_FP16R=0 
pytest unit/ops/accelerators/test_accelerator_forward.py
pytest unit/ops/accelerators/test_accelerator_backward.py
pytest unit/test_cuda_forward.py
pytest unit/test_cuda_backward.py
pytest unit/test_get_optim_files.py
pytest unit/test_autotuning.py
pytest unit/test_csr.py
pytest unit/test_run.py
pytest unit/comm/test_dist.py
pytest unit/runtime/half_precision/test_fp16.py
pytest unit/runtime/half_precision/test_bf16.py
pytest unit/runtime/half_precision/onebit/test_onebit.py
pytest unit/runtime/half_precision/test_dynamic_loss_scale.py
pytest unit/runtime/test_ds_config_dict.py
pytest unit/runtime/test_ds_config_model.py
pytest unit/runtime/pipe/test_pipe.py
pytest unit/runtime/pipe/test_topology.py
pytest unit/runtime/pipe/test_pipe_schedule.py
pytest unit/runtime/test_lr_schedulers.py
pytest unit/runtime/activation_checkpointing/test_activation_checkpointing.py
pytest unit/runtime/test_ds_initialize.py
pytest unit/runtime/test_pld.py
pytest unit/runtime/test_runtime_utils.py
pytest unit/runtime/zero/test_ignore_unused_parameters.py
pytest unit/runtime/zero/test_zero_context_ancestry.py
pytest unit/runtime/zero/test_zero_tensor_fragment.py
pytest unit/runtime/zero/test_zero_context_return.py
pytest unit/runtime/zero/test_zero.py
pytest unit/runtime/zero/test_zero_context.py
pytest unit/runtime/zero/test_zero_config.py
pytest unit/runtime/zero/test_zero_tiled.py
pytest unit/runtime/sparse_tensor/test_sparse_grads.py
pytest unit/runtime/sparse_tensor/test_csr.py
pytest unit/runtime/sparse_tensor/test_averaging_sparse_gradients.py
pytest unit/runtime/test_data_efficiency.py
pytest unit/runtime/test_multi_output_model.py
pytest unit/runtime/comm/test_coalesced_collectives.py
pytest unit/runtime/test_autocast.py
pytest unit/runtime/utils/test_partition.py
pytest unit/runtime/test_data.py
pytest unit/test_ds_arguments.py
pytest unit/test_pipe_schedule.py
pytest unit/moe/test_moe.py
pytest unit/moe/test_moe_tp.py
pytest unit/checkpoint/test_sparse.py
pytest unit/checkpoint/test_zero_optimizer.py
pytest unit/checkpoint/test_other_optimizer.py
pytest unit/checkpoint/test_pipeline.py
pytest unit/checkpoint/test_latest_checkpoint.py
pytest unit/checkpoint/test_tag_validation.py
pytest unit/checkpoint/test_moe_checkpoint.py
pytest unit/checkpoint/test_reshape_checkpoint.py
pytest unit/checkpoint/test_lr_scheduler.py
pytest unit/test_autocast.py
pytest unit/monitor/test_monitor.py
pytest unit/utils/test_get_optim_files.py
pytest unit/utils/test_init_on_device.py
pytest unit/utils/test_groups.py
pytest unit/test_cpu_adagrad.py
pytest unit/ops/adagrad/test_cpu_adagrad.py
pytest unit/ops/spatial/test_nhwc_bias_add.py
pytest unit/ops/quantizer/test_quantize.py
pytest unit/ops/quantizer/test_dequantize.py
pytest unit/ops/quantizer/test_fake_quantization.py
pytest unit/ops/aio/test_aio.py
pytest unit/ops/adam/test_cpu_adam.py
pytest unit/ops/adam/test_adamw.py
pytest unit/ops/transformer/inference/test_bias_relu.py
pytest unit/ops/transformer/inference/test_bias_add.py
pytest unit/ops/transformer/inference/test_residual_add.py
pytest unit/ops/transformer/inference/test_moe_res_matmult.py
pytest unit/ops/transformer/inference/test_bias_gelu.py
pytest unit/ops/transformer/inference/test_layer_norm.py
pytest unit/ops/transformer/inference/test_bias_geglu.py
pytest unit/launcher/test_multinode_runner.py
pytest unit/launcher/test_run.py
pytest unit/launcher/test_ds_arguments.py
pytest unit/elasticity/test_elastic.py
pytest unit/test_zero_tiled.py
pytest unit/test_groups.py


