Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 2.14 KB

File metadata and controls

66 lines (43 loc) · 2.14 KB

Testing — Console Test Runner

Part of Project_zero.

A standalone console application (Testing.exe) that exercises the other four sub-projects — ADT, Allocator, Smart_ptr, and My_algorithms — through a series of practical tests. It is the main entry point for verifying that everything works correctly.


Features

  • Runs tests for all sub-projects from a single executable
  • Console output with pass/fail results and timing information (provided by My_algorithms' built-in measure_time)
  • Links against all static libraries (ADT.lib, Allocator.lib, My_algorithms.lib) and the DLL import library (Smart_ptr.lib)

Running the Pre-built Binary

The ready-to-use binary is in x64/Release/:

x64/Release/
├── Testing.exe       ← run this
├── Smart_ptr.dll     ← must be in the same folder
├── ADT.lib
├── Allocator.lib
├── My_algorithms.lib
└── Smart_ptr.lib

Important: Smart_ptr.dll must be in the same directory as Testing.exe. It is already placed there in the Release output, so just run Testing.exe from that folder.

Simply double-click Testing.exe or run it from a terminal:

cd x64\Release
Testing.exe

Building from Source

Open Project_zero.slnx in Visual Studio 2022 and set the configuration to Release / x64, then build the solution. Visual Studio will build the sub-projects in dependency order and place all outputs in x64/Release/.

Make sure the following project references are configured for the Testing project:

  • Linker → Input → Additional Dependencies: ADT.lib; Allocator.lib; My_algorithms.lib; Smart_ptr.lib
  • Linker → General → Additional Library Directories: $(SolutionDir)x64\Release\
  • Include directories pointing to ADT/, Allocator/, My_algorithms/, Smart_ptr/

Source Files

File Description
main.cpp Entry point; contains all test cases

Requirements

  • Windows x64
  • Visual Studio 2026 / MSVC with C++20 (/std:c++20)
  • Smart_ptr.dll present at runtime (see above)